<?php

namespace App\Services\Article;

use App\Services\ProjectValidate;

/**
 * 文章设置验证
 * Class ValidateSetting
 * @package App\Services\Setting
 */
class ValidateArticle extends ProjectValidate
{

    /**
     * 自定义子类初始化
     * @param array $initData
     * @return mixed
     */
    public function initValidate($initData = [])
    {
    }


    /**
     * @var array 验证规则集合
     */
    public $rules = [
        'id'          => 'required',
        'classify_id' => 'required',
        'title'       => 'required|min:2|string',
        'content'     => 'required',
    ];

    /**
     * @var array 当前验证错误信息
     */
    public $messages = [
        'classify_id' => '文章主题',
        'title'       => '文章标题',
        'content'     => '文章内容',
    ];
}
